﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ////Load Images
            //DataTable dtImages = ImageManagement.GetAllImg().Tables[0];
            //DataList2.DataSource = dtImages;
            //DataList2.DataBind();

            ////Load Landscapes
            //DataTable dtLands = LandscapesManagement.GetAllLand().Tables[0];
            ////Des mathleng = 306
            ////int leng= "Dalat is a hilly romantic city with a cool 'western' climate. The French named the city Dalat from the latin 'Dat Aliis Laetitiam Aliis Temperiem' ('Giving Pleasure to Some, Freshness to Others', and it is commonly known as 'the City of Eternal Spring', which has made it a popular destinations for holiday".Length;
            //foreach (DataRow row in dtLands.Rows)
            //{
            //    if(row["landscapeDescription"].ToString().Length>306)
            //        row["landscapeDescription"] = row["landscapeDescription"].ToString().Substring(0, 306);
            //}
            //DataList1.DataSource = dtLands;
            //DataList1.DataBind();
        }
    }
}
